#ifndef ERRORMESSAGE_H_
#define ERRORMESSAGE_H_

#include <string>
#include "ariba/ariba.h"

using namespace ariba;
using std::string;

using_serialization;

class ErrorMessage : public Message {
	VSERIALIZEABLE;
public:
	ErrorMessage();
	ErrorMessage(uint8_t _errorCode);
	virtual ~ErrorMessage();

	uint8_t getErrorCode();

private:
	uint8_t errorCode;
};

sznBeginDefault( ErrorMessage, X ) {
	X && errorCode;
} sznEnd();

#endif /* ERRORMESSAGE_H_ */
